package com.woniuxy.microfundservice.dao;

import com.woniuxy.microfundservice.bean.AutomaticInvestment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AutomaticInvestmentDao {

    int insertOne(AutomaticInvestment automaticInvestment);

    List<AutomaticInvestment> selectByName(String userName);

    int delOne(AutomaticInvestment automaticInvestment);

    List<AutomaticInvestment> selectByType(@Param("type") String type,@Param("day") int day);
}
